package com.dfrz.planeclub.utill;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(true,0000,"操作成功"),
    FAILURE(false,0001,"操作失败"),
    SYSTEM_ERROR(false,0002,"系统错误"),
    PARAM_ERROR(false,0003,"参数缺失"),
    USER_NOLOGIN(false,1000,"用户未登录"),
    USER_UNAUTHORIZED(false,1001,"权限不足");

    //响应结果标致 表示接口是否请求成功
    private Boolean success;
    //响应状态码
    private Integer code;
    //状态码描述信息
    private String message;

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
